package com.service;

import com.entity.Comment;

import com.entity.Comment;
import com.github.pagehelper.PageInfo;
import com.util.AjaxResult;
import com.vo.CommentVo;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface CommentService {
    //@李奇洲
    public AjaxResult insertComment(HttpSession session,Integer resourceId, String context);

    //李奇洲 通过Resource id查询所有评论
    public AjaxResult findAllComment(Integer resourceId,Integer pageNo);

    //吴彬彬     根据条件分页查询待审核评论
    public PageInfo<List> findByChapterId(CommentVo commentVo);

    //吴彬彬  通过审核、禁用评论
    public int updateStatus (Integer id,Integer status);

    //吴彬彬   根据条件分页查询已审核评论(启用、禁用)
    public PageInfo<List> findComs(CommentVo commentVo);
}
